package com.lindroy.gankmvp.mvp.model

import com.lindroy.gankmvp.http.gankService
import com.lindroy.gankmvp.mvp.base.BaseModel
import com.lindroy.gankmvp.mvp.contract.CategoryContract
import com.lindroy.gankmvp.mvp.model.bean.CategoryResp
import com.lindroy.gankmvp.mvp.model.bean.HttpResult
import io.reactivex.Observable

/**
 * @author Lin
 * @date 2021/7/2
 * @function
 */
class CategoryModel:BaseModel(),CategoryContract.Model {
    override fun getCategory(): Observable<HttpResult<List<CategoryResp>>> = gankService.getArticleCategory()
}